package day2001;

import java.lang.reflect.Method;

public class aaaa {
    public static void main(String[] args) throws Exception {
        Class a = anli.class;
        Method[] b = a.getDeclaredMethods();
        for(Method c :b){
            System.out.println(c.getName());
        }

        Method f= a.getDeclaredMethod("xin_xi2", int.class, int.class, String.class);
        Object g = a.newInstance();
        f.setAccessible(true);
        f.invoke(g,10,20,"qqqq");
    }
}
